package com.google.code.sprite.conf;

import java.util.ArrayList;
import java.util.List;

public class TableConfig {

    private String dbName;
    private String javaName;
    private String pkgName;
    private String showName;
    private String tipInfo;
    
    private List<ColumnConfig> columns = new ArrayList<ColumnConfig>();

    public void addColumn(ColumnConfig col ) {
        this.columns.add(col);
    }

    public void setDbName(String dbName) {
        this.dbName=dbName;
    }
    public String getDbName() {
        return this.dbName;
    }


    public void setJavaName(String javaName) {
        this.javaName=javaName;
    }
    public String getJavaName() {
        return this.javaName;
    }

    public String getEntityClassName() {
        return this.javaName;
    }
    public String getDaoImplClassName() {
        return this.javaName + "DaoImpl";
    }
    public String getServiceImplClassName() {
        return this.javaName + "ServiceImpl";
    }
    public String getActionClassName() {
        return this.javaName + "Action";
    }
    public String getServiceClassName() {
        return this.javaName + "Service";
    }
    public String getDaoClassName() {
        return this.javaName + "Dao";
    }

    public void setPkgName(String pkgName) {
        this.pkgName=pkgName;
    }
    public String getPkgName() {
        return this.pkgName;
    }
	public void setColumns(List<ColumnConfig> columns) {
		this.columns = columns;
	}
	public List<ColumnConfig> getColumns() {
		return columns;
	}
	public void setTipInfo(String tipInfo) {
		this.tipInfo = tipInfo;
	}
	public String getTipInfo() {
		return tipInfo;
	}
	
    public void setShowName(String showName) {
        this.showName=showName;
    }
    public String getShowName() {
        return this.showName;
    }

}
